package Lesson;

import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入：");
        String str = sc.nextLine();

        String[] split = str.split(",");

        for (int i = 0; i < split.length; i++) {
            System.out.println(split[i]+ "\t");
        }

        boolean flag1 = str.startsWith("e");
        boolean flag2 = str.endsWith("e");

        System.out.println(flag1);
        System.out.println(flag2);
    }
}
